package com.chixing.mapper;

import com.chixing.entity.Coupon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chixing.entity.vo.CouponDetailVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author liwenjing
 * @since 2025-10-07
 */
public interface CouponMapper extends BaseMapper<Coupon> {
    // 显示平台所有的优惠券 + 用户是否领取的信息
    public List<CouponDetailVO> selectAllCoupon(@Param("userId") Integer userId,
                                                @Param("couponStatus")Integer couponStatus);
}
